package com.ljc.ssm.common;

/**
 * Created with IntelliJ IDEA.
 * User: ljc
 * Date: 2022/12/09 21:43
 * Description:
 * Version: V1.0
 * 构建一个异常类型,表示为业务中出现的异常信息,而非java运行产生的异常
 * @author: ljc
 */
public class BizException extends Exception{
    private ExceptionCode exceptionCode;
    public BizException(ExceptionCode exceptionCode){
        super(exceptionCode.getMessage());
        this.exceptionCode=exceptionCode;
    }
    //再提供一个getter
    public ExceptionCode getExceptionCode(){
        return exceptionCode;
    }
}
